package com.ymttest.database.sqlwapper.godmch;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.mch_info;
import com.ymttest.database.model.providerSupportCountry;
import com.ymttest.database.model.serviceProvider;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/************************************************************************************
 * @Author : 吴文
 * @Date : 
 * @Copyright : 洋码头
 *godmach
 ************************************************************************************/
public class providerSupportCountryWapper {
	SqlManager manage;
	public providerSupportCountryWapper() {
		manage = new SqlManager("mysqlgodmchdb" + EnvSetup.getEnv());
		 
	}
	public   List<providerSupportCountry> selectByProviderId(Integer providerId) throws InterruptedException {

		List<providerSupportCountry> list =  manage.getSelectResults("com.ymttest.database.mapping.godmch.providerSupportCountryMapper.selectByProviderId",providerId);

		manage.commit();
		return list;
	}
	
	public   List<Map> selectNameByProviderId(Integer providerId) throws InterruptedException {

		 List<Map> list =  manage.getSelectResults("com.ymttest.database.mapping.godmch.providerSupportCountryMapper.selectNameByProviderId",providerId);

		manage.commit();
		return list;
	}
	
	public static void min(String args[]) throws InterruptedException {
	
	}
}
